
<meta charset="utf-8">
<script>
   
    document.write("<select>");
    for(var i=1990;i<=2017;i++){
        document.write("<option>"+i+"</option>");
    }
    document.write("</select>");
    document.write("年");

    document.write("<select>");
    for(var j=1;j<=12;j++){
        document.write("<option>"+j+"</option>");
    }
    document.write("</select>");
    document.write("月");

    document.write("<select>");
    if(j==4||j==6||j==9||j==11){
        for(k=1;k<=30;k++){
            document.write("<option>"+k+"</option>");
        }
    }else if(j==2){
        if(i%4==0 && i%100!=0 || i%400==0){
            for(k=1;k<=29;k++){
            document.write("<option>"+k+"</option>");
            }
        }else{
            for(k=1;k<=28;k++){
            document.write("<option>"+k+"</option>");
            }
        }
    }else{
        for(k=1;k<=31;k++){
            document.write("<option>"+k+"</option>");
        }
    } 
    document.write("</select>");
    document.write("日");
</script>